import Vue from 'vue'
import VueRouter from 'vue-router'
import Myhome from '../views/01/Myhome.vue'
import dingdan from '../views/01/dingdan.vue'
import My from '../views/01/My.vue'
import fenlei from '../views/01/fenlei.vue'
Vue.use(VueRouter)
const routes = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        component: Myhome
    },
    {
        path: '/dingdan',
        component: dingdan
    },
    {
        path: '/my',
        component: My
    },
    {
        path: '/fenlei',
        component: fenlei
    },
]

const router1 = new VueRouter({
    routes: routes
})

export default router1